@media (max-width: 860px) {
    .checkbox-group .checkbox-inline {
        min-width: inherit;
    }

    .exam-steps a span {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-horizontal .control-label {
        min-width: 80px;
    }

    .form-group .form-control-url {
        width: 100%;
    }

    .sidebar {
        display: none;
        overflow-y: auto;
        width: 100%;
        z-index: 5;
    }

        .sidebar ul li a {
            padding-right: 25px;
        }

    .main-content {
        margin-left: 0;
    }

        .main-content.open {
            display: none;
        }

    .modal-dialog {
        width: 540px;
        margin: 20px auto;
    }

    .modal-body div.checkbox {
        min-width: 190px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-footer {
        position: relative;
    }
}

@media (max-width: 548px) {
    .modal-dialog {
        width: 460px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        width: 300px;
    }

    input[type="datetime"], .radio-group {
        min-width: inherit;
    }

    .toolbar {
        display: inline-block;
    }

    .bs-bars {
        display: none;
    }

    .db-view {
        padding: 30px 30px 15px 30px;
    }

        .db-view .panel {
            width: auto;
        }

    .top-menu > li > a span {
        display: none;
    }

    .top-menu .dropdown-menu {
        min-width: inherit;
    }
}

@media (max-width: 400px) {
    .toolbar .dropdown-menu a {
        border-left: none;
        padding: 0 8px;
    }

        .toolbar .dropdown-menu a:first-child {
            padding-left: 16px;
        }

        .toolbar .dropdown-menu a:last-child {
            padding-right: 16px;
        }
}

@media (max-width: 320px) {
    .top-menu {
        position: absolute;
        right: 15px;
        left: auto;
    }

    .sidebar-toggle-box span {
        display: none;
    }
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        text-align: left;
    }

    .db-view .panel {
        width: 260px;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }

    .main-content {
        margin-top: 0;
        position: fixed;
        left: 0;
        bottom: 40px;
        right: 0;
        top: 60px;
        overflow: auto;
    }

    .sidebar {
        top: 60px;
        bottom: 40px;
        position: absolute;
        overflow-y: auto;
    }

    .exam-steps {
        display: flex;
    }

        .exam-steps .active:after {
            border-left-color: #007ACC;
        }

        .exam-steps li {
            position: relative;
            margin-right: 7px;
            flex: auto;
        }

            .exam-steps li:first-child:before {
                border: none;
            }

            .exam-steps li:last-child:after {
                border: none;
            }

            .exam-steps li:before {
                position: absolute;
                left: 0;
                top: 0;
                height: 0;
                width: 0;
                border-bottom: 20px inset transparent;
                border-left: 20px solid #fff;
                border-top: 20px inset transparent;
                content: "";
            }

            .exam-steps li:after {
                position: absolute;
                right: -20px;
                top: 0;
                height: 0;
                width: 0;
                border-bottom: 20px inset transparent;
                border-left: 20px solid #5bc0de;
                border-top: 20px inset transparent;
                content: "";
                z-index: 2;
            }
}

@media (min-width: 992px) {
    .db-view .panel {
        width: 360px;
    }

    .modal-dialog {
        width: 900px;
    }

    .form-group .form-control-url {
        width: 87%;
    }
}

@media (min-height: 672px) {
    html, body {
        height: 100%;
        overflow: hidden;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }

    .main-content {
        margin-top: 0;
        position: fixed;
        left: 0;
        bottom: 40px;
        right: 0;
        top: 60px;
        overflow: auto;
    }

    .sidebar {
        top: 60px;
        bottom: 40px;
        position: absolute;
        overflow-y: auto;
    }

    .site-footer {
        position: fixed;
        left: 0;
        bottom: 0;
        right: 0;
    }
}

@media (min-height: 568px) {
    .modal-body {
        max-height: 480px;
        overflow-y: auto;
    }
}

@media (max-height: 568px) {
    .modal-body {
        height: 330px;
        overflow-y: auto;
    }
}

@media (max-height: 414px) {
    .modal-body {
        height: 200px;
        overflow-y: auto;
    }
}

@media (max-height: 320px) {
    .modal-body {
        height: 180px;
        overflow-y: auto;
    }
}
